from django.urls import path
from . import views

urlpatterns = [
    # 认证相关
    path('sendVerificationCode', views.send_verification_code, name='send_verification_code'),
    path('register', views.register, name='register'),
    path('login', views.user_login, name='login'),
    path('logout', views.user_logout, name='logout'),
    
    # 外来用户注册申请
    path('sendExternalVerificationCode', views.send_external_verification_code, name='send_external_verification_code'),
    path('externalRegister', views.external_user_registration, name='external_user_registration'),
    
    # 用户信息相关
    path('getInfo', views.get_user_info, name='get_user_info'),
    path('updateInfo', views.update_user_info, name='update_user_info'),
    path('uploadAvatar', views.upload_avatar, name='upload_avatar'),
    path('getBadge', views.get_user_badges, name='get_user_badges'),
    path('getUserPost', views.get_user_posts, name='get_user_posts'),
    path('getDailyTop', views.get_daily_top_users, name='get_daily_top_users'),
    
    # 消息相关
    path('getMessageCount', views.get_message_count, name='get_message_count'),
    path('getMessageList', views.get_message_list, name='get_message_list'),
    path('getUnreadMessageCount', views.get_unread_message_count, name='get_unread_message_count'),
    
    # Support图片相关
    path('uploadSupportImage', views.upload_support_image, name='upload_support_image'),
    path('deleteSupportImage', views.delete_support_image, name='delete_support_image'),
]